<%@page pageEncoding="utf-8" %>
<%@ page import="java.util.*" %>
<%@ page import="java.text.*" %>
<%@ page import="com.zll.framework.util.*" %>
<%@ page import="com.zll.framework.model.*" %>
<%@ page import="com.zll.framework.grid.*" %>
<%@ page import="com.qbooks.common.*" %>
<%@ page import="com.qbooks.store.help.*" %>
<%@ page import="com.qbooks.publisher.*" %>

<%
	final String HOME_NAME				= "큐북스 - 문제풀이 전용 eBook";
	final String context_root			= "";

	final String session_user_id		= StringUtil.nvl(session.getAttribute("session.user_id"));
	final String session_user_name		= StringUtil.nvl(session.getAttribute("session.user_name"));
	final String session_user_auth		= StringUtil.nvl(session.getAttribute("session.user_auth"));

	
	boolean isMember			= false;	//회원로그인
	boolean isSeller			= false;	//판매자로그인
	boolean isAdmin				= false;	//관리자로그인
	
	if (session_user_auth.equals("SU") || session_user_auth.equals("MA")) {
		isAdmin = true;
	} else if (session_user_auth.equals("PU")) {
		isSeller = true;
	} else if (session_user_auth.equals("GE")) {
		isMember = true;
	} 

	boolean isLogin				= isMember || isSeller || isAdmin;	//로그인여부
	
	String remoteAddr 	= request.getRemoteAddr();

	Calendar cal = Calendar.getInstance();
	SimpleDateFormat df = new SimpleDateFormat("yyyyMMdd");

	final String TODAY 		= df.format(cal.getTime());

	String searchType		= StringUtil.nvl(request.getParameter("searchType"));
	String searchValue		= StringUtil.nvl(request.getParameter("searchValue"));

%>